#ifndef INTERFACE_PAGRID_H
#define INTERFACE_PAGRID_H

char*          Pagrid_GetScheme(int CType,int WType,int RType,int CSeed, int ISeed, int RSeed);
void           Pagrid_Perm(int n,int* arr);
void           Pagrid_Randini(int seed);

#ifdef PAGRID
PlotGraphType* Pagrid_TransGraph(void* graph);
PlotGridType*  Pagrid_TransGrid(void* grid);
void           Pagrid_Serialize(GraphType *graph,char *filename,
				int outresult, int id,
				char* F_graph, char* F_grid,
				int CType, int WType, int RType,
				int CSeed, int ISeed, int RSeed);
void           Pagrid_SerializeWhere(GraphType *g,char* F_output,
				     int outid,int outresult,int outser);

GraphType*     Pagrid_Unserialize(char *F_ser,GraphType *graph,
				  char **F_graph,char **F_grid,
				  int* level, 
				  int* CType, int* WType, int *RType,
				  int* CSeed, int *ISeed, int *RSeed);
#endif

#endif
